package views
{
	import flash.events.GeolocationEvent;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	import flash.sensors.Geolocation;
	
	import inerface.ITestMapPanel;
	
	import main.ViewSubBase;
	
	import panel.baiduMap.TestMapPanel;
	import panel.mapPanel.MapPanel;
	
	public class TestMapView extends ViewSubBase
	{
		private var _panel:ITestMapPanel;
		
		private var geoloc:Geolocation = new Geolocation();
		
		public function TestMapView()
		{
		}
		
		public override function show():void
		{
			render();
		}
		
		protected override function render():void
		{
			if(_panel == null){
				_panel = new TestMapPanel;
				_panel.init(view.layout.stage,view.resourceLoader,view.lang);
			}
			this.addView(_panel);
		}
		
		public override function clear():void
		{
			if(_panel){
				_panel.clear();
				_panel = null;
			}
		}
		
		public override function close():void
		{
			view.layout.closeView(this);
		}
	}
}